# -*- coding: utf-8 -*-
# @Time : 2021/12/31 16:18

from Common.yaml_method import YamlMethod
from src.User.Api.user_api import app
from src.ApiTest.ProjectInfo.Api.project_api import app
from src.ApiTest.ProjectConfig.Api.base_info_api import app
from src.ApiTest.ProjectConfig.Api.mysql_api import app
from src.Case.Api.case_name_api import app
from src.Case.Api.case_data_api import app
from src.ApiTest.ConfigurationData.Api.data_api import app
from src.ApiTest.ProjectConfig.Api.module_api import app
from src.ApiTest.ProjectConfig.Api.sprint_api import app
from src.Case.Api.upload_case_api import app
from src.ApiTest.Operating.Api.operating_api import app
from src.ApiTest.SqlData.Api.sql_api import app
from src.ApiTest.ApiInfo.Api.api_info_api import app
from src.ApiTest.ApiCase.Api.case_api import app
from src.Bugs.Api.bug_api import app

evn = YamlMethod().read_data('environment.yaml')['evn']
server_info = YamlMethod().read_data('account_info.yaml')['server'][evn]
host = server_info[0]
port = server_info[1]

app.run(host=host, port=port, debug=True)
